/* * Copyright (c) 2007-2023, Marketo, Inc. All rights reserved. * See https://developers.marketo.com/MunchkinLicense.pdf for license terms * Marketo marketing automation web activity tracking script * Version: 163 r896 */ (function(l){if(!l.MunchkinTracker){var h=l.document,p=h.location,C=encodeURIComponent,y=!1,q=null,t=null,D=!1,v=null,E=[],u=function(b,a,c,d){try{var e=function(){try{c.apply(this,arguments)}catch(a){}};b.addEventListener?b.addEventListener(a,e,d||!1):b.attachEvent&&b.attachEvent("on"+a,e);E.push([b,a,e,d])}catch(f){}},U=function(b,a,c,d){try{b.removeEventListener?b.removeEventListener(a,c,d||!1):b.detachEvent&&b.detachEvent("on"+a,c)}catch(e){}},e=function(b){return"undefined"!==typeof b&&null!== b},F=function(b,a){return b.className.match(RegExp("(\\s|^)"+a+"(\\s|$)"))},V=e(l.XMLHttpRequest)&&e((new l.XMLHttpRequest).withCredentials),s=function(b){var a=null,c;if(e(b))if(0===b.length)a="";else try{a=decodeURIComponent(b)}catch(d){c=b.indexOf("?");if(-1!==c)try{a=decodeURIComponent(b.substr(0,c))+b.substr(c)}catch(g){}e(a)||(a=String(b))}return a},G=function(b,a){var c={},d=e(a)?a:"=",g=b.split("&"),f=g.length,h,n,l;for(h=0;hf&&2Date.now()-c&&(y=!1);y&&window.fetch?(D="true"===window.localStorage.getItem("_mktoSecureLp_"+k),e(t)?T():window.fetch(p.protocol+"//"+k+".mktoutil.com/mktoutil/lpDomain?_mchId="+k+"&_mchTd="+q).then(function(a){if(a.ok)return a.json(); throw Error("status ${response.status}");})["catch"](function(a){window.console.warn("getLpDomain failed - ",a)}).then(function(a){e(a)&&e(a.domain)&&(window.localStorage.setItem("_mktoLpDomain_"+k+"_"+q,t=a.domain),window.localStorage.setItem("_mktoSecureLp_"+k,D=a.isSecure))})["finally"](T)):N()}}},munchkinFunction:function(b,a){var c={},d={};switch(b){case "clickLink":e(a.href)&&(c._mchHr=c._mchLr=a.href,x("clickLink",c));break;case "visitWebPage":e(a.url)&&(c._mchRu=a.url),e(a.params)&&(c._mchQp= a.params),e(a.name)&&(c._mchCn=a.name),d._mchRe=s(h.referrer),x("visitWebPage",c,d)}},createTrackingCookie:function(b){B(b)}};Date.prototype.getTimeAlias=Date.prototype.getTime;u(l,"beforeunload",function(){if(l.mktoLinkTarget&&(l.mktoLinkTarget.toLowerCase().startsWith("mailto:")||l.mktoLinkTarget.toLowerCase().startsWith("tel:")))delete l.mktoLinkTarget;else{for(var b;0